package com.papers.juan.domain.bo;

import com.papers.common.core.domain.BaseEntity;
import com.papers.common.core.validate.AddGroup;
import com.papers.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 组卷明细业务对象 t_juan_generate_detail
 *
 * @author papers
 * @date 2022-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TJuanGenerateDetailBo extends BaseEntity {

    /**
     * 组卷明细ID
     */
    private String detailId;

    /**
     * 组卷ID
     */
    private String generateId;

    /**
     * 题型
     */
    @NotBlank(message = "题型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String questionType;

    /**
     * 题目难度
     */
    @NotBlank(message = "题目难度不能为空", groups = {AddGroup.class, EditGroup.class})
    private String questionEasy;

    /**
     * 题目分数
     */
    @NotNull(message = "题目分数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer questionScore;

    /**
     * 题数
     */
    @NotNull(message = "题数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer questionNum;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;


}
